package com.hundsun.s3.mrs.core.talker;

import java.util.LinkedList;
import java.util.List;

/**
 * Talker组，用于群发信息
 * @author chenji23607
 *
 */
public abstract class Group {
	
	private List<Talker> member = new LinkedList<>();

	
	public void add(Talker talker) {
		this.member.add(talker);
	}
	
	public boolean remove(Talker talker) {
		return this.member.remove(talker);
	}

	public void setMember(List<Talker> member) {
		this.member = member;
	}

	public List<Talker> getMember() {
		return member;
	}
	
	abstract public String getId();

	abstract public String getName();
}
